package com.appkudos.view;

import java.text.DecimalFormat;
import java.util.List;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.DialogInterface.OnMultiChoiceClickListener;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.appkudos.view.R;
import android.widget.Spinner;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;

import com.appkudos.controller.RecController;
import com.appkudos.controller.UserController;
import com.appkudos.model.Group;
import com.appkudos.model.User;

public class ViewReviewActivity extends Activity {
	
	private Activity PARENTACTIVITY; 
	Bundle extras;

	TextView recommender;
	TextView recommendee;
	TextView recText;
	TextView appName;

	String app_name;
	
	UserController uc = new UserController();
	RecController rc =  new RecController();
	Group group;
	User user;
	App app;
	
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
    	PARENTACTIVITY = this;
        setContentView(R.layout.view_review);
        
        // get data from bundle
    	Intent launchIntent = getIntent();
	    extras = launchIntent.getExtras();
        uc = new UserController();
        group = uc.getCurrentGroup(extras);
        user = uc.getCurrentUser(extras);
        
        initWidgets();
    }

    public void initWidgets() {
    	/*
    	recommender = (TextView) findViewById(R.id.vr_recommender);
    	recommendee = (TextView) findViewById(R.id.vr_recommendee);
    	recText = (TextView) findViewById(R.id.vr_comment_text);
    	appName = (TextView) findViewById(R.id.vr_app_name);
    	
    	// fill app name based on previous screen
    	if (extras!= null) {
    		recommender.setText(extras.getString("rec_sender"));
    		recommendee.setText(extras.getString("rec_receiver"));
    		recText.setText(extras.getString("rec_message"));
    		appName.setText(extras.getString("app_id"));
    	}*/
    	
    }
   
    

}
